Skip to content

Conversation

@abergs
Copy link
Member

@abergs abergs commented Jul 25, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-23639

📔 Objective

This PR adds the CXF sample from the repo so that we can use it for reference in unit tests.

It also servers as the feature branch for adding CXF Import mappings for multiple CXF data types.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@abergs abergs requested a review from a team as a code owner July 25, 2025 08:44
@abergs abergs requested review from Hinton, addisonbeck and dani-garcia and removed request for addisonbeck July 25, 2025 08:44
@github-actions
Copy link
Contributor

github-actions bot commented Jul 25, 2025

Logo
Checkmarx One – Scan Summary & Details834b87a9-1708-4e63-98f3-427bcac9b790

Great job! No new security vulnerabilities introduced in this pull request

@abergs
Copy link
Member Author

abergs commented Jul 25, 2025

How do I tell Sonar to relax?

@codecov
Copy link

codecov bot commented Jul 25, 2025

Codecov Report

❌ Patch coverage is 98.60530% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.80%. Comparing base (bceb681) to head (bf4d43d).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-exporters/src/cxf/import.rs 97.50% 10 Missing ⚠️
...bitwarden-exporters/src/cxf/import_sample_tests.rs 97.70% 8 Missing ⚠️
...ates/bitwarden-exporters/src/cxf/editable_field.rs 97.05% 1 Missing ⚠️
crates/bitwarden-exporters/src/cxf/note.rs 98.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #361      +/-   ##
==========================================
+ Coverage   74.19%   75.80%   +1.60%     
==========================================
  Files         253      257       +4     
  Lines       21897    23271    +1374     
==========================================
+ Hits        16247    17641    +1394     
+ Misses       5650     5630      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@abergs abergs enabled auto-merge (squash) August 12, 2025 15:51
@abergs abergs requested a review from Hinton August 12, 2025 16:16
@abergs abergs disabled auto-merge August 12, 2025 17:08
@abergs abergs changed the title PM-23639: Add CXF Import sample PM-23639: Add CXF Import mappings Aug 13, 2025
@abergs abergs marked this pull request as draft August 13, 2025 08:32
{
"type": "ssh-key",
"keyType": "ssh-rsa",
"privateKey": "MC4CAQAwBQYDK2VwBCIEID-U9VakauO4Fsv4b_znpDHcdYg74U68siZjnWLPn7Q1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tweaked this again, let's see which ends up in the final example.

Hinton
Hinton previously approved these changes Aug 14, 2025
## 🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-23649
<!-- Paste the link to the Jira or GitHub issue or otherwise describe /
point to where this change is coming from. -->

## 📔 Objective

This PR maps the Note type, and adds mapping the note for existing vault
items.

Note: A separate task has been created to track that we're mapping notes
for all other cipheritems (some are not created yet).

<!-- Describe what the purpose of this PR is, for example what bug
you're fixing or new feature you're adding. -->

## ⏰ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## 🦮 Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- 👍 (`:+1:`) or similar for great changes
- 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info
- ❓ (`:question:`) for questions
- 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- 🎨 (`:art:`) for suggestions / improvements
- ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or
concerns needing attention
- 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or
indications of technical debt
- ⛏ (`:pick:`) for minor or nitpick changes
@abergs abergs requested a review from Hinton August 14, 2025 17:01
@abergs abergs requested a review from Hinton August 15, 2025 10:43
## 🎟️ Tracking

<!-- Paste the link to the Jira or GitHub issue or otherwise describe /
point to where this change is coming from. -->

https://bitwarden.atlassian.net/browse/PM-23645

## 📔 Objective

<!-- Describe what the purpose of this PR is, for example what bug
you're fixing or new feature you're adding. -->

Wrap up cards by supporting the fields not exposed in our data model as
custom fields.

## ⏰ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## 🦮 Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- 👍 (`:+1:`) or similar for great changes
- 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info
- ❓ (`:question:`) for questions
- 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- 🎨 (`:art:`) for suggestions / improvements
- ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or
concerns needing attention
- 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or
indications of technical debt
- ⛏ (`:pick:`) for minor or nitpick changes
## 🎟️ Tracking

<!-- Paste the link to the Jira or GitHub issue or otherwise describe /
point to where this change is coming from. -->

https://bitwarden.atlassian.net/browse/PM-23653

## 📔 Objective

<!-- Describe what the purpose of this PR is, for example what bug
you're fixing or new feature you're adding. -->

Adds support for importing ssh keys using CXF.

## ⏰ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## 🦮 Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- 👍 (`:+1:`) or similar for great changes
- 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info
- ❓ (`:question:`) for questions
- 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- 🎨 (`:art:`) for suggestions / improvements
- ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or
concerns needing attention
- 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or
indications of technical debt
- ⛏ (`:pick:`) for minor or nitpick changes
Hinton
Hinton previously approved these changes Aug 18, 2025
/// - country: EditableField<"country-code"> → Identity::country
/// - tel: EditableField<"string"> → Identity::phone
/// - postalCode: EditableField<"string"> → Identity::postal_code
pub(super) fn address_to_identity(address: &AddressCredential) -> (Identity, Vec<Field>) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking thought: With all the amount of clones we're doing in this function, I feel like it would be easier to take AddressCredential by value and just clone the whole struct once when it's passed in. Similar thing for the other conversion functions here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, much simpler code.

@Hinton Hinton requested a review from dani-garcia August 18, 2025 16:38
@sonarqubecloud
Copy link

@Hinton Hinton changed the title PM-23639: Add CXF Import mappings [PM-23639] Add CXF Import mappings Aug 19, 2025
@Hinton Hinton merged commit b8e494b into main Aug 19, 2025
50 checks passed
@Hinton Hinton deleted the cxf/sample branch August 19, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants